#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr[10] = { 2, 5, 7, 3, 6, 8, 1, 0, 9, 4 };
	int max = arr[0];
	int min = arr[0];
	for (int i = 1; i < 10; i++)
	{
		if (max < arr[i])
			max = arr[i];
		if (min > arr[i])
			min = arr[i];
	}
	printf("max = %d\nmin = %d", max, min);
}